package com.ruoyi.jeeplus.modules.screen.frontdesk.screen_fire_alarm.service;

import com.ruoyi.jeeplus.modules.screen.frontdesk.screen_fire_alarm.domain.Frontdesk_fire_alarm;
import com.ruoyi.jeeplus.modules.screen.frontdesk.screen_fire_alarm.mapper.Frontdesk_fire_alarmMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

/**
 * @author 刘奥旸
 * @version 1.0
 */
@Service
public class Frontdesk_fire_alarmService {
    @Autowired
    private Frontdesk_fire_alarmMapper frontdeskFireAlarmMapper;

    public List<Frontdesk_fire_alarm> getPagedFireAlarms(int page, int pageSize) {
        int offset = (page - 1) * pageSize;
        return frontdeskFireAlarmMapper.LAYHselectAllFireAlarmsPaged(pageSize, offset);
    }
}
